package com.chinaedu.oc.dao.manageauthority;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chinaedu.oc.entity.authority.ManageAuthority;
import com.chinaedu.oc.entity.authority.ManageAuthorityVO;
import com.chinaedu.oc.util.annotation.Master;
import com.chinaedu.oc.util.annotation.Slaver;

/**
 * @author lidan101
 * 权限列表页dao接口
 */
public interface ManageAuthorityDao {

	//获取权限列表页数据
	@Slaver
	List<ManageAuthority> getAuthList();
	
	@Slaver
	List<ManageAuthorityVO> getAuths(@Param("level")String level,@Param("type")String type);

	@Slaver
	List<ManageAuthorityVO> getAuthsByPid(@Param("parentId")String parentId,@Param("type")String type);

	@Slaver
	List<ManageAuthority> getAuthsByPidAndType(@Param("type")String type,@Param("id") String id);

	@Master
	void saveAuth(ManageAuthority auth);

	@Master
	void updateAuth(ManageAuthority auth);

	@Slaver
	String getMaxAuthvalue();

	@Master
	void delAuth(ManageAuthority auth);

}
